package com.cskaoyan.bean.vo;

/**
 * @program: project2_market
 * @time: 2021/10/22
 * @author: yangshuai
 **/

import com.cskaoyan.bean.entity.Category;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 微信小程序的分类的Vo
 * categoryList 为类目表
 * currentCategory  当前类目
 * currentSubCategory 当前的子类别
 */
@NoArgsConstructor
@Data
public class CatalogIndexVo {

    private List<Category> categoryList;    // 商品类目
    private Category currentCategory;       // 当前类别
    private List<Category> currentSubCategory;  // 当前类别的子类别

    // 用来返回，查询到的商品类目，当前类别，当前类别的子类别 的数据
    public CatalogIndexVo(List<Category> categoryList, Category currentCategory, List<Category> currentSubCategory) {
        this.categoryList = categoryList;
        this.currentCategory = currentCategory;
        this.currentSubCategory = currentSubCategory;
    }

}
